package com.jnzc.ocr.serv.shop.api;

import com.jnzc.ocr.common.bean.PageResult;
import com.jnzc.ocr.serv.shop.entity.ShopOrder;
import com.jnzc.ocr.serv.shop.filter.ShopOrderFilter;
import com.jnzc.ocr.serv.shop.vo.ShopOrderPayVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhangcm
 * @version 1.0, 2017-10-06
 */
@FeignClient("serv-shop")
@RequestMapping("/shopOrderApi")
public interface ShopOrderApi {

    @PostMapping("/find")
    ShopOrder find(@RequestParam("id") Long id, @RequestParam("shopId") Long shopId);

    @PostMapping("/search")
    PageResult<ShopOrder> search(@RequestBody ShopOrderFilter filter, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);

    @PostMapping("/pay")
    ShopOrder pay(@RequestBody ShopOrderPayVo payVo);
}
